home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
023a
/
prop_man.zip
/
WATRBILL.SAB
< prev
next >
Wrap
Text File
|
1991-10-05
|
3KB
|
90 lines
set messages off
set error messages off
set escape off
set bell off
label begin
set v percen to ""
cls
DISPLAY CP.DIS
WRITE "WATRBILL.SAB" AT 2,36
label tst
set v y/n to ""
fillin y/n using "Run Test Set-Up Of Statement Forms (Y/N)? " at 11,16
if y/n = "n" then ; goto start ; endif
out pri
print not.tst where limit = 1
out scr
write " " at 11,16
goto tst
label start
cls
display cp.dis
write "WATRBILL.SAB" AT 2,36
write "Water Billing & Accounting" at 6,27
set v amt to 0
set v amt currency
set v thru text
set v code to ""
fillin code using "Enter ENTIRE Add.Code For Billing or <ESC> " at 10,5
if code = "" then ; GOTO STOP ; ENDIF
set v percen to ""
set v inc to ""
set v percen to waterpc in cur.mast where add.code = .code
set v inc to includes in cur.mast where add.code = .code
set v addr to ""
set v addr to address in cur.mast where add.code = .code
write "Address For Water Billing : " at 12,5
write .addr at 12,38
write "Rent At This Address Includes: " at 13,5
write .inc at 13,38
write "Water Percentage To Be Billed: " at 14,5
write .percen at 14,38
write "%" at 14,41
write "Enter Water Bill Amount For This Quarter (or '0').. " at 16,5
fillin amt using "-> " at 16,59
if amt = 0 then
goto start
endif
set v yd currency
set v yd to tot.due in cur.mast where add.code = .code
set v balwat currency
set v balwat to 0
set v balwat to bal.wate in cur.mast where add.code = .code
set v tbill currency
set v tbill to 0
set v tbill to (.balwat + .amt)
write "Previous Water Due : " at 19,5
write .balwat at 19,28
write "This Billing...... : " at 20,5
write .amt at 20,28
write "Total Water Now Due: " at 21,5
write .tbill at 21,28
append cur.mast to water where add.code = .code
change rent.pd to 0 in water where add.code exists
change past.pd to 0 in water where add.code exists
change other.pd to 0 in water where add.code exists
change wat.paid to 0 in water where add.code exists
change sec.pd to 0 in water where add.code exists
change other.ch to 0 in water where add.code exists
change water.ch to .amt in water where add.code exists
change cach to "Charge" in water where add.code exists
change notes to "Current Water Billing" in water where add.code exists
change date to .#date in water where add.code exists
change yet.due to (.yd + .amt) in water whe add.code exists
label pas
output printer
print water where add.code exists
output screen
change yet.due to (.yd + .amt) in water where add.code exists
append water to transact where add.code exists
run watrpost.sab
delete rows from water where add.code exists
goto start
label STOP
cls
set messages on
set error messages on
set bell on
return